package com.oldwine.user.mapper;

import com.oldwine.user.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    /**
     * 根据id查询用户
     * @param id 用户id
     * @return 返回User对象
     */

    @Select("select * from tb_user where id = #{id}")
    User queryUserById(@Param("id") Long id);
}
